9d83cd7f920c40d1c7485298c710baba197ce83d,plugins/testng/src/com/theoryinpractice/testng/inspection/DependsOnMethodInspection.java,DependsOnMethodInspection,checkMethodNameDependency,#InspectionManager#PsiClass#String#PsiNameValuePair#List#,85

Before Change


                                                                   ProblemHighlightType.LIKE_UNKNOWN_SYMBOL);
                problemDescriptors.add(descriptor);

            } else if(foundMethod != null && !TestNGUtil.hasTest(foundMethod) && !!TestNGUtil.hasConfig(foundMethod)) {
                ProblemDescriptor descriptor = manager.createProblemDescriptor(dep,
                                                                   "Method '" + methodName + "' is not a test or configuration method.",
                                                                   (LocalQuickFix) null,

After Change



            } else {
              boolean hasTestsOrConfigs = false;
              for (PsiMethod foundMethod : foundMethods) {
                 hasTestsOrConfigs |= TestNGUtil.hasTest(foundMethod) || TestNGUtil.hasConfig(foundMethod);
              }
              if (!hasTestsOrConfigs) {
                ProblemDescriptor descriptor = manager.createProblemDescriptor(dep,